package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Blob;

/**
 * 触发器类
 * @author remon
 * @create 2018-09-08 21:40
 **/
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "QRTZ_TRIGGERS")
public class QuartzTriggers {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;

    /**
     * 触发器名称
     */
    @Column(name = "TRIGGER_NAME")
    private String triggerName;

    /**
     * 触发器组别
     */
    @Column(name = "TRIGGER_GROUP")
    private String triggerGroup;

    /**
     * 任务名称
     */
    @Column(name = "JOB_NAME")
    private String jobName;

    /**
     * 任务组名称
     */
    @Column(name = "JOB_GROUP")
    private String jobGroup;

    /**
     * 描述
     */
    @Column(name = "DESCRIPTION")
    private String description;

    /**
     * 下次执行时间
     */
    @Column(name = "NEXT_FIRE_TIME")
    private Long nextFireTime;

    /**
     * 上次执行时间
     */
    @Column(name = "PREV_FIRE_TIME")
    private Long prevFireTime;

    /**
     * 执行优先级
     */
    @Column(name = "PRIORITY")
    private Integer priority;

    /**
     * 触发器状态
     */
    @Column(name = "TRIGGER_STATE")
    private String triggerState;

    /**
     * 触发器类型
     */
    @Column(name = "TRIGGER_TYPE")
    private String triggerType;

    /**
     * 开始时间
     */
    @Column(name = "START_TIME")
    private Long startTime;

    /**
     * 结束时间
     */
    @Column(name = "END_TIME")
    private Long endTime;

    /**
     * 格林尼治时间名称
     */
    @Column(name = "CALENDAR_NAME")
    private String calendarName;

    /**
     * 失败说明
     */
    @Column(name = "MISFIRE_INSTR")
    private Integer misfireInstr;

    /**
     * 任务时间
     */
    @Column(name = "JOB_DATA")
    private byte[] jobData;
}
